package com.company.nuwa.common.domain;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>分页返回对象基类</p >
 *
 * @author Nikola Tesla
 * @version 1.0
 * @date 2020/07/22 17:11
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class PageInfoDTO<T> {

    /**
     * 列表数据
     */
    private List<T> list;

    /**
     * 数量
     */
    private Long total;

    public PageInfoDTO(List<T> list, long total) {
        this.list = list;
        this.total = total;
    }


}
